const getters = {
    sidebar: state => state.app.sidebar,
    device: state => state.app.device,
    token: state => state.user.token,
    userId: state => state.user.userInfo.userId,
    avatar: state => state.user.userInfo.staffPhoto, // 头像
    userName: state => state.user.userInfo.username, // 用户名
    routes: state => state.user.routes, // 动态路由
    company: state => state.user.userInfo.company,
    departmentName: state => state.user.userInfo.departmentName
}
export default getters
